package com.zhousb.deviceManager.controller;

import com.zhousb.deviceManager.common.R;
import com.zhousb.deviceManager.common.ResponseResult;
import com.zhousb.deviceManager.service.AssetLifecycleService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.*;

/**
 * @author zhousb
 * @date 2024/11/5 10:15
 * @description
 */
@RestController
@RequestMapping("/lifecycle")
public class KiAssetLifecycleController {
    @Resource
    private AssetLifecycleService kiAssetLifecycleService;


    @GetMapping("/list")
    public ResponseResult<?> list(@RequestParam("assetId")String assetId){
        return R.success(kiAssetLifecycleService.list(assetId));
    }
}
